<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Signature Algorithms</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="openssl.pkcs7.flags.html">« PKCS7 标志/常量</a></li>
      <li style="float: right;"><a href="openssl.ciphers.html">Ciphers »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="openssl.constants.html">预定义常量</a></li>
    <li>Signature Algorithms</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="openssl.signature-algos" class="section">
   <h2 class="title">Signature Algorithms</h2>
   <dl>
    
     <dt id="constant.openssl-algo-dss1">
      <strong><code>OPENSSL_ALGO_DSS1</code></strong> 
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha1">
      <strong><code>OPENSSL_ALGO_SHA1</code></strong> 
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">
        <span class="function"><a href="function.openssl-sign.html" class="function">openssl_sign()</a></span> 和
       <span class="function"><a href="function.openssl-verify.html" class="function">openssl_verify()</a></span> 函数使用的默认算法。
      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha224">
      <strong><code>OPENSSL_ALGO_SHA224</code></strong>
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha256">
      <strong><code>OPENSSL_ALGO_SHA256</code></strong>
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha384">
      <strong><code>OPENSSL_ALGO_SHA384</code></strong>
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-sha512">
      <strong><code>OPENSSL_ALGO_SHA512</code></strong>
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-rmd160">
      <strong><code>OPENSSL_ALGO_RMD160</code></strong>
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-md5">
      <strong><code>OPENSSL_ALGO_MD5</code></strong> 
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-md4">
      <strong><code>OPENSSL_ALGO_MD4</code></strong> 
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">

      </span>
     </dd>

    
    
     <dt id="constant.openssl-algo-md2">
      <strong><code>OPENSSL_ALGO_MD2</code></strong> 
      (<span class="type">integer</span>)
     </dt>

     <dd>

      <span class="simpara">
       在PHP 5.2.13和PHP 5.3.2中，只有在使用MD2支持编译PHP时，才可以使用这个常量。 当在编译PHP时需要验证通过 DHAVE_OPENSSL_MD2_H CFLAGP, 当编译 OpenSSL 1.0.0+ 版本时需要启用 enable-md2选项。
      </span>
     </dd>

    
   </dl>


   <blockquote class="note"><p><strong class="note">注意</strong>: 
    <p class="para">这些常量是在5.0.0版本中添加的。</p>
    <p class="para">
     <strong><code>OPENSSL_ALGO_MD2</code></strong>, <strong><code>OPENSSL_ALGO_MD4</code></strong>,
     <strong><code>OPENSSL_ALGO_MD5</code></strong>, <strong><code>OPENSSL_ALGO_SHA1</code></strong>,
     <strong><code>OPENSSL_ALGO_DSS1</code></strong>
    </p>
   </p></blockquote>
   <blockquote class="note"><p><strong class="note">注意</strong>: 
    <p class="para">这些常量是在5.4.8版本中添加的。</p>
    <p class="para">
     <strong><code>OPENSSL_ALGO_RMD160</code></strong>, <strong><code>OPENSSL_ALGO_SHA224</code></strong>,
     <strong><code>OPENSSL_ALGO_SHA256</code></strong>, <strong><code>OPENSSL_ALGO_SHA384</code></strong>,
     <strong><code>OPENSSL_ALGO_SHA512</code></strong>
    </p>
   </p></blockquote>

  </div></div></div></body></html>